#ifndef _TEXTURE_ASSET_H_
#define _TEXTURE_ASSET_H_

#include "Asset.h"
#include <graphics.h>

class TextureAsset : public Asset
{
public:
    TextureAsset(const std::string& id, const std::wstring& path);
    virtual ~TextureAsset();

    // 实现Asset基类接口
    virtual bool Load() override;
    virtual void Unload() override;

    // 获取图像
    IMAGE* GetImage() const { return m_image; }

    // 获取宽度
    int GetWidth() const;

    // 获取高度
    int GetHeight() const;

private:
    std::wstring m_path;
    IMAGE* m_image;
};

#endif // !_TEXTURE_ASSET_H_
